-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netatmo integration #1951
Netatmo integration #1951
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1951 +/- ##
==========================================
+ Coverage 98.21% 98.30% +0.09%
==========================================
Files 800 833 +33
Lines 12501 13176 +675
==========================================
+ Hits 12278 12953 +675
Misses 223 223 ☔ View full report in Codecov by Sentry. |
Job #2314: Bundle Size — 9.82MiB (+1.9%).
Warning Bundle contains 3 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #2314 report View Terdious:netatmo-integration branch activity View project dashboard |
Hi @Pierre-Gilles Thanks in advance. |
… the features released for v1.
…orted devices, modification of reachable device method, deletion of features
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR 🙏
I haven't entirely tested the integration, I just did a first review with what I could test on the UI side + a first code review.
On the functional side
When I first open the integration, here is what I see:
There is an error message immediately (I didn't do anything), which is a bit weird for the user.
Link to the documentation is missing category:
Buttons a bit weird:
On the code side
The code is so much different from when I first had a look 😅
- There is a major issue with the way the
NetatmoHandler
works, it seems you are passing the object (itself) to every single function. It's an anti-pattern, you have access tothis
everywhere. - Many files of this class contains several functions. Try to keep 1 file = 1 function when you are building functions of a class (Talking about NetatmoHandler)
- Some function comments are not explaining what a function does, making the code hard to grasp.
- See all my comments
Please take some time to review the PR entirely and improve those points before I can do a second review.
This is already a massive PR (+7000 lines of code) so each review is expensive.
front/src/assets/integrations/devices/netatmo/netatmo-NAPlug.jpg
Outdated
Show resolved
Hide resolved
front/src/assets/integrations/devices/netatmo/netatmo-NATherm1.jpg
Outdated
Show resolved
Hide resolved
This commit refactors the NetatmoDeviceBox component by replacing a div class with "page-options d-flex" and removes the .firmware-revision style from the style.css file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes! 🙏
It's way better now :)
I have a few feedbacks on the server side but nothing serious.
On the UI, it looks good to me now! Can you update your documentation PR with new screenshots?
Once everything is fixed, it'll good for merge I think !! 🚀🚀🚀
I do this before the end of the evening. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for me for this first PR, thanks for this great work 👏👏👏
Pull Request check-list
To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:
npm test
on both front/server)npm run eslint
on both front/server)npm run prettier
on both front/server)npm run compare-translations
on front)NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
Description of change
Add a new Netatmo integration
OAuth2 authentication management